home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 010a / fff361.zip / ARC.H next >
C/C++ Source or Header  |  1991-06-12  |  1KB  |  40 lines

  1. #ifndef DOS_DATE
  2. #define DOS_DATE
  3. typedef union {
  4.     unsigned u;
  5.     struct {
  6.         unsigned Day : 5;
  7.         unsigned Month : 4;
  8.         unsigned Year  : 7;
  9.         } b;
  10.     } DOS_FILE_DATE;
  11. #endif
  12.  
  13. #ifndef DOS_TIME
  14. #define DOS_TIME
  15. typedef union {
  16.     unsigned u;
  17.     struct {
  18.         unsigned Second : 5;
  19.         unsigned Minute : 6;
  20.         unsigned Hour   : 5;
  21.         } b;
  22.     } DOS_FILE_TIME;
  23. #endif
  24.  
  25. typedef struct {
  26.         char ArcMark;                           /* arc mark = 0x1A                          */
  27.     char HeaderVersion;            /* header version 0 = end, else pack method */
  28.         char Name[13];                          /* file name                                */
  29.         unsigned long Size;                     /* size of compressed file                  */
  30.     DOS_FILE_DATE Date;
  31.     DOS_FILE_TIME Time;
  32.         unsigned Crc;                           /* cyclic redundancy check                  */
  33.         unsigned long Length;                   /* true file length                         */
  34.         } ARCHIVE_HEADER;                       /* the next size bytes after the header     */
  35.                                                 /* are the file, then another header ...    */
  36.  
  37. /*    Prototypes for ARC Processing Functions    */
  38.  
  39. void DoArc (char *Path);
  40.